import request from '@/utils/request.js'
import { useTokenStore } from '@/stores/token.js';
//学生课堂列表查询
export const askQuestionService = (conversationID,questionContent) => {
    console.log(conversationID,questionContent)
    // return {'data':
    //     {
    //         "ID":"123",
    //         "answer": "是一种名为c语言的语言"
    //     }
    // }
    let tokenStore = useTokenStore()
    //console.log(tokenStore.token.token)
    const headers = {
        token: tokenStore.token.token
    }
    const data ={
        "conversationID":conversationID,
        "questionContent":questionContent
    }
    return request.post('/student/ask',data, { headers });
}